/**
* Copyright 2013 European Parliament
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and limitations under the Licence.
*/
package org.nsesa.editor.gwt.an.common.client.ui.overlay.document.gen.akomantoso20;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.DOM;
import org.nsesa.editor.gwt.an.common.client.ui.overlay.document.gen.xmlschema.*;
import org.nsesa.editor.gwt.an.common.client.ui.overlay.document.gen.xmlschema.LanguageSimpleType;
import org.nsesa.editor.gwt.core.client.ui.overlay.document.OverlayWidget;
import org.nsesa.editor.gwt.core.client.ui.overlay.document.OverlayWidgetImpl;
import org.nsesa.editor.gwt.core.client.ui.overlay.document.StructureIndicator;
import java.util.ArrayList;
import java.util.LinkedHashMap;
/**
* the complex type basicopt defines the content model and attributes used by basic containers<br/> such as coverPage and conclusions. Here the id attribute is optional
* This file is generated. Rather than changing this file, correct the template called <tt>overlayClass.ftl</tt>.
*/
public class BasicoptComplexType extends OverlayWidgetImpl {
/**
* Stores a structure indicator coming from xsd structure *
*/
private static StructureIndicator STRUCTURE_INDICATOR = new StructureIndicator.DefaultStructureIndicator(1, 1
,
new StructureIndicator.DefaultChoice(1, -1, new StructureIndicator.DefaultGroup(1, 1, new StructureIndicator.DefaultChoice(1, 1, new StructureIndicator.DefaultGroup(1, 1, new StructureIndicator.DefaultChoice(1, 1, new StructureIndicator.DefaultElement(1, 1, new BlockList())
, new StructureIndicator.DefaultElement(1, 1, new Toc())
, new StructureIndicator.DefaultElement(1, 1, new Tblock())
)
)
, new StructureIndicator.DefaultGroup(1, 1, new StructureIndicator.DefaultChoice(1, 1, new StructureIndicator.DefaultElement(1, 1, new Ul())
, new StructureIndicator.DefaultElement(1, 1, new Ol())
, new StructureIndicator.DefaultElement(1, 1, new Table())
, new StructureIndicator.DefaultElement(1, 1, new P())
)
)
, new StructureIndicator.DefaultElement(1, 1, new Foreign())
, new StructureIndicator.DefaultElement(1, 1, new Block())
)
)
, new StructureIndicator.DefaultGroup(1, 1, new StructureIndicator.DefaultChoice(1, 1, new StructureIndicator.DefaultElement(1, 1, new Formula())
, new StructureIndicator.DefaultElement(1, 1, new Container())
)
)
)
);
/**
* Create a browser DOM span element and set up "type", "ns" and css class attributes
*/
public static Element create() {
com.google.gwt.user.client.Element span = DOM.createSpan();
span.setAttribute("type", "basicoptComplexType");
span.setAttribute("ns", "http://www.akomantoso.org/2.0");
span.setClassName("widget basicoptComplexType");
return span;
}
// CONSTRUCTORS ------------------
/**
* Create a <code>BasicoptComplexType</code> object with the given DOM element
*/
public BasicoptComplexType(Element element) {
super(element);
}
// FIELDS ------------------
private IDSimpleType idAttr;
private NMTOKENSimpleType evolvingIdAttr;
private StatusTypeSimpleType statusAttr;
private String wildcardContentAttr;
private StringSimpleType classAttr;
private StringSimpleType styleAttr;
private StringSimpleType titleAttr;
private AnyURISimpleType alternativeToAttr;
private LanguageSimpleType langAttr;
private AnyURISimpleType refersToAttr;
private AnyURISimpleType periodAttr;
/**
* Return <code>idAttr</code> property
*
* @return idAttr
*/
public IDSimpleType getIdAttr() {
if (idAttr == null) {
idAttr = new IDSimpleType();
idAttr.setValue(getElement().getAttribute("id"));
}
return idAttr;
}
/**
* Return <code>idAttr</code> property in DSL way
*
* @return idAttr
*/
public IDSimpleType idAttr() {
return getIdAttr();
}
/**
* Set <code>idAttr</code> property
*
* @param idAttr the new value
*/
public void setIdAttr(final IDSimpleType idAttr) {
this.idAttr = idAttr;
getElement().setAttribute("id", idAttr.getValue());
}
/**
* Set <code>idAttr</code> property in DSL way
*
* @param idAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType idAttr(final IDSimpleType idAttr) {
setIdAttr(idAttr);
return this;
}
/**
* Return <code>evolvingIdAttr</code> property
*
* @return evolvingIdAttr
*/
public NMTOKENSimpleType getEvolvingIdAttr() {
if (evolvingIdAttr == null) {
evolvingIdAttr = new NMTOKENSimpleType();
evolvingIdAttr.setValue(getElement().getAttribute("evolvingId"));
}
return evolvingIdAttr;
}
/**
* Return <code>evolvingIdAttr</code> property in DSL way
*
* @return evolvingIdAttr
*/
public NMTOKENSimpleType evolvingIdAttr() {
return getEvolvingIdAttr();
}
/**
* Set <code>evolvingIdAttr</code> property
*
* @param evolvingIdAttr the new value
*/
public void setEvolvingIdAttr(final NMTOKENSimpleType evolvingIdAttr) {
this.evolvingIdAttr = evolvingIdAttr;
getElement().setAttribute("evolvingId", evolvingIdAttr.getValue());
}
/**
* Set <code>evolvingIdAttr</code> property in DSL way
*
* @param evolvingIdAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType evolvingIdAttr(final NMTOKENSimpleType evolvingIdAttr) {
setEvolvingIdAttr(evolvingIdAttr);
return this;
}
/**
* Return <code>statusAttr</code> property
*
* @return statusAttr
*/
public StatusTypeSimpleType getStatusAttr() {
if (statusAttr == null) {
statusAttr = StatusTypeSimpleType.fromString(getElement().getAttribute("status"));
}
return statusAttr;
}
/**
* Return <code>statusAttr</code> property in DSL way
*
* @return statusAttr
*/
public StatusTypeSimpleType statusAttr() {
return getStatusAttr();
}
/**
* Set <code>statusAttr</code> property
*
* @param statusAttr the new value
*/
public void setStatusAttr(final StatusTypeSimpleType statusAttr) {
this.statusAttr = statusAttr;
getElement().setAttribute("status", statusAttr.value());
}
/**
* Set <code>statusAttr</code> property in DSL way
*
* @param statusAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType statusAttr(final StatusTypeSimpleType statusAttr) {
setStatusAttr(statusAttr);
return this;
}
/**
* Return <code>wildcardContentAttr</code> property
*
* @return wildcardContentAttr
*/
public String getWildcardContentAttr() {
if (wildcardContentAttr == null) {
//hmm nothing to do here
}
return wildcardContentAttr;
}
/**
* Return <code>wildcardContentAttr</code> property in DSL way
*
* @return wildcardContentAttr
*/
public String wildcardContentAttr() {
return getWildcardContentAttr();
}
/**
* Set <code>wildcardContentAttr</code> property
*
* @param wildcardContentAttr the new value
*/
public void setWildcardContentAttr(final String wildcardContentAttr) {
this.wildcardContentAttr = wildcardContentAttr;
getElement().setAttribute("wildcardContent", wildcardContentAttr);
}
/**
* Set <code>wildcardContentAttr</code> property in DSL way
*
* @param wildcardContentAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType wildcardContentAttr(final String wildcardContentAttr) {
setWildcardContentAttr(wildcardContentAttr);
return this;
}
/**
* Return <code>classAttr</code> property
*
* @return classAttr
*/
public StringSimpleType getClassAttr() {
if (classAttr == null) {
classAttr = new StringSimpleType();
classAttr.setValue(getElement().getAttribute("class"));
}
return classAttr;
}
/**
* Return <code>classAttr</code> property in DSL way
*
* @return classAttr
*/
public StringSimpleType classAttr() {
return getClassAttr();
}
/**
* Set <code>classAttr</code> property
*
* @param classAttr the new value
*/
public void setClassAttr(final StringSimpleType classAttr) {
this.classAttr = classAttr;
getElement().setAttribute("class", classAttr.getValue());
}
/**
* Set <code>classAttr</code> property in DSL way
*
* @param classAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType classAttr(final StringSimpleType classAttr) {
setClassAttr(classAttr);
return this;
}
/**
* Return <code>styleAttr</code> property
*
* @return styleAttr
*/
public StringSimpleType getStyleAttr() {
if (styleAttr == null) {
styleAttr = new StringSimpleType();
styleAttr.setValue(getElement().getAttribute("style"));
}
return styleAttr;
}
/**
* Return <code>styleAttr</code> property in DSL way
*
* @return styleAttr
*/
public StringSimpleType styleAttr() {
return getStyleAttr();
}
/**
* Set <code>styleAttr</code> property
*
* @param styleAttr the new value
*/
public void setStyleAttr(final StringSimpleType styleAttr) {
this.styleAttr = styleAttr;
getElement().setAttribute("style", styleAttr.getValue());
}
/**
* Set <code>styleAttr</code> property in DSL way
*
* @param styleAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType styleAttr(final StringSimpleType styleAttr) {
setStyleAttr(styleAttr);
return this;
}
/**
* Return <code>titleAttr</code> property
*
* @return titleAttr
*/
public StringSimpleType getTitleAttr() {
if (titleAttr == null) {
titleAttr = new StringSimpleType();
titleAttr.setValue(getElement().getAttribute("title"));
}
return titleAttr;
}
/**
* Return <code>titleAttr</code> property in DSL way
*
* @return titleAttr
*/
public StringSimpleType titleAttr() {
return getTitleAttr();
}
/**
* Set <code>titleAttr</code> property
*
* @param titleAttr the new value
*/
public void setTitleAttr(final StringSimpleType titleAttr) {
this.titleAttr = titleAttr;
getElement().setAttribute("title", titleAttr.getValue());
}
/**
* Set <code>titleAttr</code> property in DSL way
*
* @param titleAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType titleAttr(final StringSimpleType titleAttr) {
setTitleAttr(titleAttr);
return this;
}
/**
* Return <code>alternativeToAttr</code> property
*
* @return alternativeToAttr
*/
public AnyURISimpleType getAlternativeToAttr() {
if (alternativeToAttr == null) {
alternativeToAttr = new AnyURISimpleType();
alternativeToAttr.setValue(getElement().getAttribute("alternativeTo"));
}
return alternativeToAttr;
}
/**
* Return <code>alternativeToAttr</code> property in DSL way
*
* @return alternativeToAttr
*/
public AnyURISimpleType alternativeToAttr() {
return getAlternativeToAttr();
}
/**
* Set <code>alternativeToAttr</code> property
*
* @param alternativeToAttr the new value
*/
public void setAlternativeToAttr(final AnyURISimpleType alternativeToAttr) {
this.alternativeToAttr = alternativeToAttr;
getElement().setAttribute("alternativeTo", alternativeToAttr.getValue());
}
/**
* Set <code>alternativeToAttr</code> property in DSL way
*
* @param alternativeToAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType alternativeToAttr(final AnyURISimpleType alternativeToAttr) {
setAlternativeToAttr(alternativeToAttr);
return this;
}
/**
* Return <code>langAttr</code> property
*
* @return langAttr
*/
public LanguageSimpleType getLangAttr() {
if (langAttr == null) {
langAttr = new LanguageSimpleType();
langAttr.setValue(getElement().getAttribute("lang"));
}
return langAttr;
}
/**
* Return <code>langAttr</code> property in DSL way
*
* @return langAttr
*/
public LanguageSimpleType langAttr() {
return getLangAttr();
}
/**
* Set <code>langAttr</code> property
*
* @param langAttr the new value
*/
public void setLangAttr(final LanguageSimpleType langAttr) {
this.langAttr = langAttr;
getElement().setAttribute("lang", langAttr.getValue());
}
/**
* Set <code>langAttr</code> property in DSL way
*
* @param langAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType langAttr(final LanguageSimpleType langAttr) {
setLangAttr(langAttr);
return this;
}
/**
* Return <code>refersToAttr</code> property
*
* @return refersToAttr
*/
public AnyURISimpleType getRefersToAttr() {
if (refersToAttr == null) {
refersToAttr = new AnyURISimpleType();
refersToAttr.setValue(getElement().getAttribute("refersTo"));
}
return refersToAttr;
}
/**
* Return <code>refersToAttr</code> property in DSL way
*
* @return refersToAttr
*/
public AnyURISimpleType refersToAttr() {
return getRefersToAttr();
}
/**
* Set <code>refersToAttr</code> property
*
* @param refersToAttr the new value
*/
public void setRefersToAttr(final AnyURISimpleType refersToAttr) {
this.refersToAttr = refersToAttr;
getElement().setAttribute("refersTo", refersToAttr.getValue());
}
/**
* Set <code>refersToAttr</code> property in DSL way
*
* @param refersToAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType refersToAttr(final AnyURISimpleType refersToAttr) {
setRefersToAttr(refersToAttr);
return this;
}
/**
* Return <code>periodAttr</code> property
*
* @return periodAttr
*/
public AnyURISimpleType getPeriodAttr() {
if (periodAttr == null) {
periodAttr = new AnyURISimpleType();
periodAttr.setValue(getElement().getAttribute("period"));
}
return periodAttr;
}
/**
* Return <code>periodAttr</code> property in DSL way
*
* @return periodAttr
*/
public AnyURISimpleType periodAttr() {
return getPeriodAttr();
}
/**
* Set <code>periodAttr</code> property
*
* @param periodAttr the new value
*/
public void setPeriodAttr(final AnyURISimpleType periodAttr) {
this.periodAttr = periodAttr;
getElement().setAttribute("period", periodAttr.getValue());
}
/**
* Set <code>periodAttr</code> property in DSL way
*
* @param periodAttr the new value
* @return <code>BasicoptComplexType</code> instance
*/
public BasicoptComplexType periodAttr(final AnyURISimpleType periodAttr) {
setPeriodAttr(periodAttr);
return this;
}
/**
* Return <code>java.util.List<Foreign></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Foreign> getForeigns() {
java.util.List<Foreign> result = new ArrayList<Foreign>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Foreign".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Foreign) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Foreign></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Foreign> getForeignList() {
return getForeigns();
}
/**
* Add <code>java.util.List<Foreign></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Foreign addForeign(Foreign foreignElem) {
this.addOverlayWidget(foreignElem);
return foreignElem;
}
/**
* Return <code>java.util.List<Block></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Block> getBlocks() {
java.util.List<Block> result = new ArrayList<Block>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Block".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Block) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Block></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Block> getBlockList() {
return getBlocks();
}
/**
* Add <code>java.util.List<Block></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Block addBlock(Block blockElem) {
this.addOverlayWidget(blockElem);
return blockElem;
}
/**
* Return <code>java.util.List<Formula></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Formula> getFormulas() {
java.util.List<Formula> result = new ArrayList<Formula>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Formula".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Formula) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Formula></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Formula> getFormulaList() {
return getFormulas();
}
/**
* Add <code>java.util.List<Formula></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Formula addFormula(Formula formulaElem) {
this.addOverlayWidget(formulaElem);
return formulaElem;
}
/**
* Return <code>java.util.List<Container></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Container> getContainers() {
java.util.List<Container> result = new ArrayList<Container>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Container".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Container) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Container></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Container> getContainerList() {
return getContainers();
}
/**
* Add <code>java.util.List<Container></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Container addContainer(Container containerElem) {
this.addOverlayWidget(containerElem);
return containerElem;
}
/**
* Return <code>java.util.List<BlockList></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<BlockList> getBlockLists() {
java.util.List<BlockList> result = new ArrayList<BlockList>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("BlockList".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((BlockList) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<BlockList></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<BlockList> getBlockListList() {
return getBlockLists();
}
/**
* Add <code>java.util.List<BlockList></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public BlockList addBlockList(BlockList blockListElem) {
this.addOverlayWidget(blockListElem);
return blockListElem;
}
/**
* Return <code>java.util.List<Toc></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Toc> getTocs() {
java.util.List<Toc> result = new ArrayList<Toc>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Toc".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Toc) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Toc></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Toc> getTocList() {
return getTocs();
}
/**
* Add <code>java.util.List<Toc></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Toc addToc(Toc tocElem) {
this.addOverlayWidget(tocElem);
return tocElem;
}
/**
* Return <code>java.util.List<Tblock></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Tblock> getTblocks() {
java.util.List<Tblock> result = new ArrayList<Tblock>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Tblock".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Tblock) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Tblock></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Tblock> getTblockList() {
return getTblocks();
}
/**
* Add <code>java.util.List<Tblock></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Tblock addTblock(Tblock tblockElem) {
this.addOverlayWidget(tblockElem);
return tblockElem;
}
/**
* Return <code>java.util.List<Ul></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Ul> getUls() {
java.util.List<Ul> result = new ArrayList<Ul>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Ul".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Ul) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Ul></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Ul> getUlList() {
return getUls();
}
/**
* Add <code>java.util.List<Ul></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Ul addUl(Ul ulElem) {
this.addOverlayWidget(ulElem);
return ulElem;
}
/**
* Return <code>java.util.List<Ol></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Ol> getOls() {
java.util.List<Ol> result = new ArrayList<Ol>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Ol".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Ol) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Ol></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Ol> getOlList() {
return getOls();
}
/**
* Add <code>java.util.List<Ol></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Ol addOl(Ol olElem) {
this.addOverlayWidget(olElem);
return olElem;
}
/**
* Return <code>java.util.List<Table></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<Table> getTables() {
java.util.List<Table> result = new ArrayList<Table>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("Table".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((Table) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<Table></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<Table> getTableList() {
return getTables();
}
/**
* Add <code>java.util.List<Table></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public Table addTable(Table tableElem) {
this.addOverlayWidget(tableElem);
return tableElem;
}
/**
* Return <code>java.util.List<P></code> property
*
* @return The property as unmodifiable list
*/
public java.util.List<P> getPs() {
java.util.List<P> result = new ArrayList<P>();
for (OverlayWidget widget : getChildOverlayWidgets()) {
if ("P".equalsIgnoreCase(widget.getType()) && "http://www.akomantoso.org/2.0".equalsIgnoreCase(widget.getNamespaceURI())) {
result.add((P) widget);
}
}
return java.util.Collections.unmodifiableList(result);
}
/**
* Return <code>java.util.List<P></code> property in DSL way
*
* @return The property as unmodifiable list
*/
public java.util.List<P> getPList() {
return getPs();
}
/**
* Add <code>java.util.List<P></code> property in the list of properties
*
* @return The property as unmodifiable list
*/
public P addP(P pElem) {
this.addOverlayWidget(pElem);
return pElem;
}
//Override all attributes methods to be conformant with DSL approach
/**
* Returns the namespace URI of this amendable widget.
*
* @return The namesapce as String
*/
@Override
public String getNamespaceURI() {
return "http://www.akomantoso.org/2.0";
}
@Override
public LinkedHashMap<String, String> getAttributes() {
final LinkedHashMap<String, String> attrs = new LinkedHashMap<String, String>();
attrs.putAll(super.getAttributes());
attrs.put("id", getIdAttr() != null ? getIdAttr().getValue() : null);
attrs.put("evolvingId", getEvolvingIdAttr() != null ? getEvolvingIdAttr().getValue() : null);
attrs.put("status", getStatusAttr() != null ? getStatusAttr().value() : null);
attrs.put("wildcardContent", getWildcardContentAttr() != null ? getWildcardContentAttr().toString() : null);
attrs.put("class", getClassAttr() != null ? getClassAttr().getValue() : null);
attrs.put("style", getStyleAttr() != null ? getStyleAttr().getValue() : null);
attrs.put("title", getTitleAttr() != null ? getTitleAttr().getValue() : null);
attrs.put("alternativeTo", getAlternativeToAttr() != null ? getAlternativeToAttr().getValue() : null);
attrs.put("lang", getLangAttr() != null ? getLangAttr().getValue() : null);
attrs.put("refersTo", getRefersToAttr() != null ? getRefersToAttr().getValue() : null);
attrs.put("period", getPeriodAttr() != null ? getPeriodAttr().getValue() : null);
return attrs;
}
@Override
public StructureIndicator getStructureIndicator() {
return STRUCTURE_INDICATOR;
}
/**
* DSL Style for html method
*/
@Override
public BasicoptComplexType html(String s) {
super.html(s);
return this;
}
}